home *** CD-ROM | disk | FTP | other *** search
/ Zoom 2 / Zoom - Release 2 (1996)(Active Software)[!].iso / graphics / icon_related / newiconsv2 / install / update_newicons < prev    next >
Text File  |  1996-02-20  |  4KB  |  175 lines

  1. ; NewIcons Installer Script
  2. ; $Ver: 38.3 (8-Jan-95)
  3. ; Written by Philip A. Vedovatti
  4. ; for Program Author Nicola Salmoria,
  5. ; with many thanks for his fine programming work.
  6.  
  7. (set @default-dest "SYS:C")
  8.  
  9. (set #bad-kick
  10.    (cat "\n\nSorry! You must have Workbench 2.0 or"
  11.         "higher to to use this package."))
  12.  
  13. (set #hello-message
  14.    (cat "\n\nWELCOME NEWICONS USER!"
  15.         "\n\n If you don't have a previous version of NewIcons"
  16.         "\nAND Deficons installed, abort this script and"
  17.         "\nExecute the Install_NewIcons script instead."
  18.         "\n\nThis installation is for updating all the"
  19.         "\nNewIcons/Deficons patches and utilities."
  20.         "\n\nIF YOU CURRENTLY HAVE NEWICONS AND DEFICONS"
  21.         "\nALREADY INSTALLED ON YOUR SYSTEM, PROCEED ONWARD."))
  22.  
  23. (set #install-library
  24.    (cat "\n\nInstalling NewIcon.library to LIBS:."))
  25.  
  26. (set #install-library-help
  27.    (cat "\n\n    This library is required to use NewIcons"
  28.         "\n and is required for the installation."))
  29.  
  30. (set #install-newicons
  31.    (cat "\n\nCopying the NewIcons main files to C:"))
  32.  
  33. (set #install-newicons-help
  34.    (cat "\n\nThis section installs NewIcons, Injectbrush"
  35.         "\nand PatchOpenWB to your C: directory."))
  36.  
  37. (set #tools-dest
  38.    (cat "\nWhich drawer would you like the NewIcon"
  39.         "\nmanipulation utilities to be installed?\n"))
  40.  
  41. (set #install-deficons
  42.    (cat "\n\nInstalling the DefIcons daemon to your"
  43.         "\nC: directory, and copying deficons brainfile"
  44.         "\nto your Envarc:sys directory."))
  45.  
  46. (set #install-deficons-help
  47.    (cat "\nThis sections installs the Deficons program"
  48.         "\nand copies the required def_icons.prefs to your"
  49.         "\nENVARC: directory."))
  50.  
  51. (set #exit-message
  52.    (cat "Please reboot your system to fully activate\n"
  53.         "the NewIcons/Deficons Systems."
  54.         "\n\n\nWe hope you enjoy this update!"))
  55.  
  56. (set #docs-dest
  57.    (cat "Where would you like the NewIcons Documentation"
  58.         "\nGuide to be installed?"))
  59.  
  60. ; ------------------------------
  61. ; Check Kickstart Version
  62. ; ------------------------------
  63.  
  64.  (if (< (getversion "LIBS:version.library") (* 37 65536))
  65.         (abort #bad-kick)
  66.  )
  67.  
  68. (message #hello-message)
  69.  
  70. ; ------------------------------
  71. ; Install NewIcon.library
  72. ; ------------------------------
  73.  
  74. (copylib
  75.       (source "/libs/newicon.library")
  76.       (dest "libs:")
  77.       (prompt #install-library)
  78.       (help #install-library-help)
  79.       (confirm)
  80. )
  81.  
  82. ;-------------------------------------------------------
  83. ;Install icon images, NewIcons, and icon support files
  84. ;-------------------------------------------------------
  85.  
  86.  
  87.  
  88.    (copylib
  89.       (prompt #install-newicons)
  90.       (source "/C/NewIcons")
  91.       (dest "c:")
  92.       (help #install-newicons-help)
  93.    )
  94.  
  95.    (copylib
  96.       (source "/C/InjectBrush")
  97.       (dest "c:")
  98.    )
  99.  
  100.    (copylib
  101.       (source "/C/PatchOpenWB")
  102.       (dest "c:")
  103.    )
  104.  
  105.  
  106.    (set destdir
  107.       (askdir
  108.             (prompt #tools-dest)
  109.             (help @askdir-help)
  110.             (default "Sys:Utilities")
  111.       )
  112.    )
  113.  
  114.    (copyfiles
  115.       (source "/Utilities/CopyNewIcon")
  116.       (dest destdir)
  117.       (infos)
  118.    )
  119.  
  120.    (copyfiles
  121.       (source "/Utilities/CreateDefaultIcon")
  122.       (dest destdir)
  123.       (infos)
  124.    )
  125.  
  126.    (copyfiles
  127.       (source "/Utilities/KillNewIcon")
  128.       (dest destdir)
  129.       (infos)
  130.    )
  131.  
  132.  
  133.  
  134.  
  135.  
  136. ;------------------------------
  137. ;Install Deficons
  138. ;------------------------------
  139.  
  140.  
  141.    (copylib
  142.       (prompt #install-deficons)
  143.       (source "/C/DefIcons")
  144.       (dest "C:")
  145.       (help #install-deficons-help)
  146.       (confirm)
  147.    )
  148.  
  149.    (copyfiles
  150.       (source "/envarc/deficons.prefs")
  151.       (dest "ENVARC:")
  152.    )
  153.  
  154.  
  155. ;------------------------------
  156. ;Install Documentation
  157. ;------------------------------
  158.  
  159.  
  160.    ((set destdir
  161.       (askdir
  162.             (prompt #docs-dest)
  163.             (help @askdir-help)
  164.             (default "Help:")
  165.       )
  166.     )
  167.     (copyfiles
  168.       (source "/NewIcons.guide")
  169.       (dest destdir)
  170.       (infos)
  171.     )
  172.    )
  173.  
  174.  
  175. (exit #exit-message)